<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>sample button</title>
  <script type="text/javascript">
  window.onload=applyBehavior;
  function applyBehavior(){
    var button=document.getElementById('clicker');
    if (button){
      button.onclick=behave;
    }
    function behave(evt){
      alert('bizzzzz');
    }
  }
  </script>
  <body>
    <form action="">
      <div>
        <button id="clicker">click me</button>
      </div>
    </form>
  </body>
</html>
